package com.zisu.aradvertising.repository;

import com.zisu.aradvertising.pojo.AdvertiserSpace;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DaoAdvertiserSpace extends JpaRepository<AdvertiserSpace,Integer> {
    //返回所有广告位和对应的广告商、合作信息、产品
    List<AdvertiserSpace> findAllByVid(int vid);
    //返回单个广告位
    AdvertiserSpace findByApid(int apid);


}
